<template>
    <el-tree 
        :data="data" 
        :props="defaultProps" 
        @node-click="handleNodeClick"
        default-expand-all=true
    ></el-tree>
</template>

<script>
export default {
    data() {
        return {
            data: [{
            label: '二航局',
            children: [{
                label: '五公司',
                children: [{
                label: '常泰大桥',
                },{
                label: '巢马大桥',
                },{
                label: '鹤洞大桥',
                }]
            },{
                label: '二公司',
                children: [{
                label: 'xxx项目部',
                },{
                label: 'xxx项目部',
                },{
                label: 'xxx项目部',
                }]
            }]
            }],


            
            defaultProps: {
            children: 'children',
            label: 'label'
            }
        
        
        };



    },
    methods: {
        handleNodeClick(data) {
            console.log(data);
        }
    }
  };
</script>

<style>

</style>